STEP 7: Let's use a loop to repeat a set of commands that will set up all five UFOs, just like with the astronauts.

  • Go to and drag Loop with Range to the bottom of your program.
  • Go to and drag Sprite at Position inside the loop. It should have a ··· in front of it.
  • Change the variable name of the new sprite to ufo.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)